package com.lhy.order.feign;

import com.lhy.order.vo.UserVo;
import com.lhy.vaccine_common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "vaccine-admin")
public interface AdminFeign {

    @PostMapping("/admin/sAdmin/putuser")
    R insertUser(@RequestBody UserVo userVo);

    @PostMapping("/admin/sAdmin/getuser")
    R getUser(@RequestBody UserVo userVo);

    @GetMapping("/admin/sAdmin/getuserbyid")
    R getUserById(@RequestParam("uId") Integer uId);
}
